<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width-device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css" />
<link rel="stylesheet" href="css/person.css" />
<link rel="shortcut icon" href="ico/logo.ico"/>
<title>伴美科技-个人中心</title>
</head>

<body>
<?php  include 'action/session_check.php';//登录判断
	   require_once("conn/conn_db.php");
       $sql = "select * from  user_info where u_name ='".$_SESSION[user]."'"; //查询语句
  $result = $conn->query($sql);                 //执行SQL语句
  //遍历查询结果的每一行
  if ($result->num_rows > 0) {
      while($row = $result->fetch_array()){	
	?>

<!--定义头部区域，放导航和logo -->
<header>
<div class="logo"><img src="ico/logo.png" alt=""/>伴美科技</div>
<nav>
<a href="shopcar_info1.php">查看购物车</a>
<a href="member_order_list.php">查看订单</a>
<a href="person_delivery_record.php?u_id=<?php echo $row['u_id'];?>">投递记录</a>
<a href="person_pwd_update.php?u_id=<?php echo $row['u_id'];?>">修改密码</a>
<a href="comment_info.php">我的评价</a>
<a href="main.php">返回首页</a>
<a href="index.php">安全退出</a>
</nav>
<?php 
}
 } 
?>
	
<!--定义折叠按钮 屏幕缩小到 -->
<div class="burger">
    <div class="burger-line1"></div>
	<div class="burger-line2"></div>
	<div class="burger-line3"></div>
</div>	
</header>
	
<form action="" method="post">
<?php   
  require_once("conn/conn_db.php");   //链接数据库
  $sql = "select * from  user_info where u_name ='".$_SESSION[user]."'"; //查询语句
  $result = $conn->query($sql);                 //执行SQL语句
  //遍历查询结果的每一行
  if ($result->num_rows > 0) {
      while($row = $result->fetch_array()){
?> 
	<!--定义我的简历部分 -->
<div class="container_box">
  <div class="container">
	<div class="container_form">
	<h1>我的个人信息</h1>
	<div class="btn">
	<a class="btn_update" href="person_update.php?u_id=<?php echo $row['u_id'];?>" target="_self">修改信息</a>
	</div>
	
	<p>补全信息更容易获得面试官的好感噢 : )</p>
	
	<h2><div class="line"></div>基本信息</h2>
    
	<div class="container_child">
	
		<h3><?php echo $row["u_name"]; ?></h3>
		<br>
	<div class="container_left">
		<span><?php echo $row["u_sex"]; ?></span><span class="dv">|</span>
		<span><?php echo $row["u_birth"]; ?></span><span class="dv">|</span>
		<span><?php echo $row["u_city"]; ?></span><span class="dv">|</span>
		<span><?php echo $row["u_education"]; ?></span>
	<br>
	<i class="fa fa-phone"></i><span class="dv1"><?php echo $row["u_tel"]; ?></span>
	<i class="fa fa-envelope"></i><span><?php echo $row["u_email"]; ?></span>
	</div>
	<div class="container_right">
	<img src='../<?php echo $row['u_header'];?>' alt="User" width="115px" height="115px">
	</div>
	</div>
	
	<h2><div class="line"></div>简历附件</h2>
    <span><a href="../<?php echo $row['u_file']; ?>" target="_blank">查看简历</a></span>
   </div>
	  </div>
	</div>
<?php 
}
 } 
?>
 </form>
<!-- 我的简历部分结束 -->

<!-- 底部模块开始 -->	
	<footer>
    <div class="footer-menus">
	   <div class="contact-us">
		    <p class="menu-title">联系我们</p>
		    <p>地址：中国重庆市XX路XX商务中心XX楼</p>
		   　<p>电话：+86XXX XXXX XXXX</p>
		   　<p>传真：+86XXX　XXXX XXXX</p>
		  　 <p>电子邮箱：admin@163.com</p>
	   </div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">服务概况</p>
		  <ul class="menu-items">
		     <li><a href="#">跨境电商</a></li>
			 <li><a href="#">供应商</a></li>
			 <li><a href="#">移动应用</a></li>
			 <li><a href="#">网页设计</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">跨境产品</p>
		  <ul class="menu-items">
		     <li><a href="#">美妆护肤</a></li>
			 <li><a href="#">家用电器</a></li>
			 <li><a href="#">健康零食</a></li>
			 <li><a href="#">生活用品</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">公司动态</p>
		  <ul class="menu-items">
		     <li><a href="#">信息公开</a></li>
			 <li><a href="#">最近新闻</a></li>
			 <li><a href="#">最新消息</a></li>
			 
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">帮助与支持</p>
		  <ul class="menu-items">
		     <li><a href="#">帮助中心</a></li>
			 <li><a href="contact.php" style="color:#f79f1f; ">留言中心</a></li>
			 <li><a href="#">文档资源</a></li>
			
		  </ul>
		</div>
		<p class="icp-info">备案号信息</p>
		<p class="rights">
		      &copy;2022 伴美科技 - 有限责任公司官网 版权所有
		</p>
		

	</div>	
</footer>
<!-- 底部模块结束 -->	
	
<script src="js/index.js"></script>
	
</body>
</html>